package com.cqupt.main;

import java.util.Scanner;

import com.cqupt.entity.receiver;

public class JavaShell {

	@SuppressWarnings("resource")
	public static void main(String[] args) {
		boolean javabBreak = true;
		Scanner scanner = new Scanner(System.in);
		while (javabBreak) {
			String com = scanner.nextLine();
			if ("break".equals(com)) {
				javabBreak = false;
				break;
			}
			if ("".equals(com)) {
				continue;
			}
			receiver rc = new receiver(com);
			String output = rc.run();  //grep -n -v 2 stringCat.txt    cat stringCat.txt | grep -n -v 2
			System.out.println(output);
		}
	}

}
